package com.youxin.busfoundation.config;


import com.youxin.busfoundation.Consts;
import com.youxin.busfoundation.bean.MonitorAlarmBean;

/**
 * 监控基础类
 * @author yingde.cao
 *
 */
public class MonitorBaseBean {
	private String id;
	
	public String getId() {
		if(id==null)
		{
			return "";
		}
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	private int monitor;
	public int getMonitor() {
		return monitor;
	}
	
	private long interval;
	
	public long getInterval() {
		if(interval<Consts.MONITOR_INTERVAL_MIN){
			return Consts.MONITOR_INTERVAL_MIN;
		}
		return interval;
	}

	public void setInterval(long interval) {
		this.interval = interval;
	}

	public void setMonitor(int monitor) {
		this.monitor = monitor;
	}
	
	private MonitorAlarmBean alarm;
	public MonitorAlarmBean getAlarm() {
		return alarm;
	}

	public void setAlarm(MonitorAlarmBean alarm) {
		this.alarm = alarm;
	}
	
}
